Dynamically controlling the rate and internal priority of packets destined for the control plane of a routing device

ABSTRACT

Disclosed are, inter alia, methods, apparatus, data structures, computer-readable media, and mechanisms, for identifying admission control policies and enforcement of these admission control policies on packets destined for a route processor. A typical routing device includes: a route processor, a forwarding lookup mechanism for identifying packets destined for the route processor; a lookup mechanism for identifying admission control parameters for packets destined for the route processor; and an admission control enforcement mechanism for enforcing the identified admission control policy parameters for the packets.

TECHNICAL FIELD

One embodiment of the invention relates to communications and computersystems, especially routers, packet switching systems, computers, andother networking or networked devices; and more particularly, oneembodiment relates to dynamically controlling the rate and/or internalpriority of packets destined for the control plane of a routing device.

BACKGROUND

The communications industry is rapidly changing to adjust to emergingtechnologies and ever increasing customer demand. This customer demandfor new applications and increased performance of existing applicationsis driving communications network and system providers to employnetworks and systems having greater speed and capacity (e.g., greaterbandwidth). In trying to achieve these goals, a common approach taken bymany communications providers is to use packet switching technology.Increasingly, public and private communications networks are being builtand expanded using various packet technologies, such as InternetProtocol (IP).

For service providers, network security is a matter of businesssurvival. Security incidents due to viruses, intrusion, operator error,and software configuration error can involve extensive associated costsand consequences such as service disruption, financial loss,dissatisfied customers, reduced productivity, and even media attention.To protect their revenue and profits, service providers must protecttheir infrastructures and offer managed services for secureconnectivity, threat defense, and endpoint protection.

To maintain high availability in an environment of increasing securitythreat (for example, distributed-denial-of-service [DDOS] attacks) andpolicy complexity, service providers are looking to new routing andswitching solutions-solutions that offer effective and embedded,hardware-based security instrumentation that enables self-defendingnetworks.

The control plane is where all routing control information is exchanged,making the control plane and its components a target. Because controlplane resiliency depends on CPU processing power and scalability,“out-of-resources” attacks against the CPU are not uncommon. To supportscalability and performance, a paper entitled “Cisco CRS-1 Security”,Cisco Systems, Inc., May 2004, (which is hereby incorporated byreference in its entirety) teaches that a control plane of a router canbe designed with distributed and redundant route processors that usesymmetric multiprocessing (SMP) CPUs. Cisco CRS-1 Security, CiscoSystems, Inc., May 2004. Under normal operations, the router transittraffic is processed by its line cards at wire rate. However, exceptionsoccur when packets are directed to the router itself. These “puntedpackets,” which include routing protocol, Internet Control MessageProtocol (ICMP), and network management packets, are directed from theline card packet processor to either the line card CPU or routeprocessor CPU. To safeguard the control plane against DoS attacks in anopen environment, multiple, layered security features can be distributedto the line card and its packet processors, with these featuresincluding: dynamic control plane protection (DCPP), automatic controlplane congestion filter, control plane time-to-live (TTL) sanity check(RFC 3682, Generalized TTL Security Mechanism (GTSM), Border GatewayProtocol (BGP) routing protocol filtering, and Route Policy Language(RPL).

Unauthorized or deliberately malicious routing updates caused byviolations such as an intruder diverting or analyzing network trafficcan compromise network security. Implementing neighbor routerauthentication with Message Digest Algorithm 5 (MD5) is a common way toavoid spoofing, and it virtually ensures that the router receivesreliable information from a trusted source—but it is only a first step.If spoofed BGP packets start spraying toward the router, receive-pathaccess control lists (ACLs) and modular QoS CLI (MQC) rate limitscontrol exactly where these packets can proceed. However, ACL and MQCcontrols are not automated. If BGP peers go down or restart, the Layer 4port number changes with each session reestablishment. As a result,network designers have been asking for an automated, dynamic way topermit configured BGP peering sessions and drop non-configured sessions.

In response, a router can offer a DCPP scheme for line card packetprocessing. With DCPP, explicitly configured BGP peering sessions areautomatically allocated adequate resources, whereas non-configuredsessions are rejected or given minimum treatment. This permit-deny modelis based on the association of statically configured IP addresses anddynamic Layer 4 port numbers. Prior to authentication and establishmentfor maximum admission control, different resource policies exist forinitial connections. Control plane packets have to go throughmultilayer, prescreening schemes until they are authorized through aninternal lookup table and allocated adequate resources. This automationfrees time spent by network administrators on manual configuration foruse on other mission-critical tasks.

Under extreme DoS or DDoS attacks that cause line cards to exceed routerslot capacity, control mechanisms perform at hardwareapplication-specific integrated circuit (ASIC) rate, beyond line cardcapacity, to drain packets into the Silicon Packet Processor (SPP) onthe Layer 3 Modular Services Card (MSC) and assure control planepacket-processing priority. This feature maintains topology while thenetwork administrator uses other security tools to install mitigationschemes to solve the problem.

Most control protocol peering sessions are established between adjacentor directly connected routers. Prior to GTSM (formerly known as BGP TTLSecurity Hack [BTSH]), BGP packets directed at the router fromnon-directed peering points had to be processed by the router CPU. Whenenough of these packets were generated, it effectively created a massiveDDoS attack that exhausted CPU resources. Now, with GTSM, a TTL check onBGP peering packets can effectively block all nondirected BGP spoofingin MSC SPPs.

These techniques may also be applied to many other applications, such asLabel Distribution Protocol (LDP) and Resource Reservation Protocol(RSVP), which can take advantage of the features of generalized GTSM.Because of the fully programmable MSC architecture in the router, GTSMsupport for other application protocols can be easily added to MSCs.

SUMMARY OF THE INVENTION

Disclosed are, inter alia, methods, apparatus, data structures,computer-readable media, and mechanisms, for dynamically controlling therate and/or internal priority of packets destined for the control planeof a routing device. For example, a routing device of one embodimentincludes: means for identifying routing device destined packets whosedestination is a control plane of the routing device; means foridentifying one or more admission parameters based on classificationconfiguration values for each of said routing device destined packetsidentified by said means for identifying routing device destined packetswhose destination is the control plane of the routing device; means fordynamically updating said admission parameters and said classificationconfiguration values in response to changes in status of routingcommunication sessions between the routing device and one or more peerrouting devices, at least some of said routing device destined packetscorresponding to said communications sessions; and means for enforcingsaid identified admission parameters corresponding to said routingdevice destined packets. Examples of the enforcement of the admissioncontrol include, but are not limited to policing, shaping, weighted taildrop thresholds, random early detection (RED), weighted random earlydetection (WRED), control plane internal priority, etc. The admissioncontrol parameters may include a specification of which type(s) orenforcement mechanisms to use, and/or typically specify characteristics(e.g., policing rates, drop thresholds, internal priority levels,shaping queues, etc.) to be used by the enforcement mechanism(s) used incontrolling the access to the control plane.

BRIEF DESCRIPTION OF THE DRAWINGS

The appended claims set forth the features of the invention withparticularity. The invention, together with its advantages, may be bestunderstood from the following detailed description taken in conjunctionwith the accompanying drawings of which:

FIG. 1 is a block diagram of a routing device used in one embodiment;

FIG. 2 is a block diagram of a line card used in one embodiment;

FIG. 3A is a block diagram of lookup mechanism for identifying controlplane admission control parameters used in one embodiment;

FIG. 3B is a block diagram of categories of lookup mechanism entriesused in one embodiment;

FIG. 3C is a block diagram illustrating a set of ternarycontent-addressable entries and policing and priority parameters used inan example of one embodiment;

FIG. 4 is a block diagram of a component or system used in oneembodiment;

FIG. 5 is a flow diagram illustrating a process for identifyingadmission control parameters used in one embodiment; and

FIG. 6 is a flow diagram illustrating a process for updating lookupmechanism entries in one embodiment.

DETAILED DESCRIPTION

Disclosed are, inter alia, methods, apparatus, data structures,computer-readable media, and mechanisms, for dynamically controlling therate and/or internal priority of packets destined for the control planeof a routing device. Embodiments described herein include variouselements and limitations, with no one element or limitation contemplatedas being a critical element or limitation. Each of the claimsindividually recites an aspect of the invention in its entirety.Moreover, some embodiments described may include, but are not limitedto, inter alia, systems, networks, integrated circuit chips, embeddedprocessors, ASICs, methods, and computer-readable medium containinginstructions. The embodiments described hereinafter embody variousaspects and configurations within the scope and spirit of the invention,with the figures illustrating exemplary and non-limiting configurations.

Embodiments described herein include various elements and limitations,with no one element or limitation contemplated as being a criticalelement or limitation. Each of the claims individually recites an aspectof the invention in its entirety. Moreover, some embodiments describedmay include, but are not limited to, inter alia, systems, networks,integrated circuit chips, embedded processors, ASICs, methods, andcomputer-readable media containing instructions. One or multiplesystems, devices, components, etc. may comprise one or more embodiments,which may include some elements or limitations of a claim beingperformed by the same or different systems, devices, components, etc.The embodiments described hereinafter embody various aspects andconfigurations within the scope and spirit of the invention, with thefigures illustrating exemplary and non-limiting configurations.

As used herein, the term “packet” refers to packets of all types or anyother units of information or data, including, but not limited to, fixedlength cells and variable length packets, each of which may or may notbe divisible into smaller packets or cells. The term “packet” as usedherein also refers to both the packet itself or a packet indication,such as, but not limited to, all or part of a packet or packet header, adata structure value, pointer or index, or any other part or direct orindirect identification of a packet or information associated therewith.For example, often times a router operates on one or more fields of apacket, especially the header, so the body of the packet is often storedin a separate memory while the packet header is manipulated, and basedon the results of the processing of the packet (i.e., the packet headerin this example), the entire packet is forwarded or dropped, etc.Additionally, these packets may contain one or more types ofinformation, including, but not limited to, voice, data, video, andaudio information. The term “item” is used generically herein to referto a packet or any other unit or piece of information or data, a device,component, element, or any other entity. The phrases “processing apacket” and “packet processing” typically refer to performing some stepsor actions based on the packet contents (e.g., packet header or otherfields), and such steps or action may or may not include modifying,storing, dropping, and/or forwarding the packet and/or associated data.

The term “system” is used generically herein to describe any number ofcomponents, elements, sub-systems, devices, packet switch elements,packet switches, routers, networks, computer and/or communicationdevices or mechanisms, or combinations of components thereof. The term“computer” is used generically herein to describe any number ofcomputers, including, but not limited to personal computers, embeddedprocessing elements and systems, control logic, ASICs, chips,workstations, mainframes, etc. The term “processing element” is usedgenerically herein to describe any type of processing mechanism ordevice, such as a processor, ASIC, field programmable gate array,computer, etc. The term “device” is used generically herein to describeany type of mechanism, including a computer or system or componentthereof. The terms “task” and “process” are used generically herein todescribe any type of running program, including, but not limited to acomputer process, task, thread, executing application, operating system,user process, device driver, native code, machine or other language,etc., and can be interactive and/or non-interactive, executing locallyand/or remotely, executing in foreground and/or background, executing inthe user and/or operating system address spaces, a routine of a libraryand/or standalone application, and is not limited to any particularmemory partitioning technique. The steps, connections, and processing ofsignals and information illustrated in the figures, including, but notlimited to any block and flow diagrams and message sequence charts, maytypically be performed in the same or in a different serial or parallelordering and/or by different components and/or processes, threads, etc.,and/or over different connections and be combined with other functionsin other embodiments, unless this disables the embodiment or a sequenceis explicitly or implicitly required (e.g., for a sequence of read thevalue, process the value—the value must be obtained prior to processingit, although some of the associated processing may be performed priorto, concurrently with, and/or after the read operation). Furthermore,the term “identify” is used generically to describe any manner ormechanism for directly or indirectly ascertaining something, which mayinclude, but is not limited to receiving, retrieving from memory,determining, defining, calculating, generating, etc.

Moreover, the terms “network” and “communications mechanism” are usedgenerically herein to describe one or more networks, communicationsmedia or communications systems, including, but not limited to theInternet, private or public telephone, cellular, wireless, satellite,cable, local area, metropolitan area and/or wide area networks, a cable,electrical connection, bus, etc., and internal communications mechanismssuch as message passing, interprocess communications, shared memory,etc. The term “message” is used generically herein to describe a pieceof information which may or may not be, but is typically communicatedvia one or more communication mechanisms of any type.

The term “storage mechanism” includes any type of memory, storage deviceor other mechanism for maintaining instructions or data in any format.“Computer-readable medium” is an extensible term, which includes, but isnot limited to any memory, storage device, storage mechanism, etc. Theterm “memory” includes any random access memory (RAM), read only memory(ROM), flash memory, integrated circuits, and/or other memory componentsor elements. The term “storage device” includes any solid state storagemedia, disk drives, diskettes, networked services, tape drives, andother storage devices. Memories and storage devices may storecomputer-executable instructions to be executed by a processing elementand/or control logic, and data which is manipulated by a processingelement and/or control logic. The term “data structure” is an extensibleterm referring to any data element, variable, data structure, database,and/or one or more organizational schemes that can be applied to data tofacilitate interpreting the data or performing operations on it, suchas, but not limited to memory locations or devices, sets, queues, trees,heaps, lists, linked lists, arrays, tables, pointers, etc. A datastructure is typically maintained in a storage mechanism. The terms“pointer” and “link” are used generically herein to identify somemechanism for referencing or identifying another element, component, orother entity, and these may include, but are not limited to a referenceto a memory or other storage mechanism or location therein, an index ina data structure, a value, etc. The term “associative memory” is anextensible term, which refers to all types of known or future developedassociative memories, such as, but not limited to binary and ternarycontent-addressable memories, hash tables, etc. Additionally, the term“associative memory unit” may include, but is not limited to one or moreassociative memory devices or parts thereof, including, but not limitedto regions, segments, banks, pages, blocks, sets of entries, etc.

The term “one embodiment” is used herein to reference a particularembodiment, wherein each reference to “one embodiment” may refer to adifferent embodiment, and the use of the term repeatedly herein indescribing associated features, elements and/or limitations does notestablish a cumulative set of associated features, elements and/orlimitations that each and every embodiment must include, although anembodiment typically may include all these features, elements and/orlimitations. In addition, the phrase “means for xxx” typically includescomputer-readable medium or media containing computer-executableinstructions for performing xxx.

In addition, the terms “first,” “second,” etc. are typically used hereinto denote different units (e.g., a first element, a second element). Theuse of these terms herein does not necessarily connote an ordering suchas one unit or event occurring or coming before another, but ratherprovides a mechanism to distinguish between particular units.Additionally, the use of a singular form of a noun is non-limiting, withits use typically including one or more of the particular thing ratherthan just one (e.g., the use of the word “memory” typically refers toone or more memories without having to specify “memory or memories,” or“one or more memories” or “at least one memory,” etc.). Moreover, thephrases “based on x” and “in response to x” are used to indicate aminimum set of items x from which something is derived or caused,wherein “x” is extensible and does not necessarily describe a completelist of items on which the operation is performed, etc. Additionally,the phrase “coupled to” is used to indicate some level of direct orindirect connection between two elements or devices, with the couplingdevice or devices modifying or not modifying the coupled signal orcommunicated information. The term “subset” is used to indicate a groupof all or less than all of the elements of a set. The term “subtree” isused to indicate all or less than all of a tree. Moreover, the term “or”is used herein to identify a selection of one or more, including all, ofthe conjunctive items. Additionally, the transitional term “comprising,”which is synonymous with “including,” “containing,” or “characterizedby,” is inclusive or open-ended and does not exclude additional,unrecited elements or method steps.

Disclosed are, inter alia, methods, apparatus, data structures,computer-readable media, and mechanisms, for dynamically controlling therate and/or internal priority of packets destined for the control planeof a routing device.

For example, a routing device of one embodiment includes: means foridentifying routing device destined packets whose destination is acontrol plane of the routing device; means for identifying one or moreadmission parameters based on classification configuration values foreach of said routing device destined packets identified by said meansfor identifying routing device destined packets whose destination is thecontrol plane of the routing device; means for dynamically updating saidadmission parameters and said classification configuration values inresponse to changes in status of routing communication sessions betweenthe routing device and one or more peer routing devices, at least someof said routing device destined packets corresponding to saidcommunications sessions; and means for enforcing said identifiedadmission parameters corresponding to said routing device destinedpackets. Examples of the enforcement of the admission control include,but are not limited to policing, shaping, weighted tail drop thresholds,random early detection (RED), weighted random early detection (WRED),control plane internal priority, etc. The admission control parametersmay include a specification of which type(s) or enforcement mechanismsto use, and/or typically specify characteristics (e.g., policing rates,drop thresholds, internal priority levels, shaping queues, etc.) to beused by the enforcement mechanism(s) used in controlling the access tothe control plane.

A routing device of one embodiment includes: a route processor; aforwarding lookup mechanism for identifying packets destined for theroute processor; a lookup mechanism for identifying admission controlparameters for said identified packets destined for the route processor;and an admission control enforcement mechanism for enforcing saididentified admission control parameters for said identified packetsdestined for the route processor. The lookup mechanism is configured tostore a plurality of entries for matching against lookup words derivedfrom fields of said packets to identify said admission controlparameters, said fields including a remote source address, a remotesource port, a local destination address, and a local destination port;wherein said entries include different categories of entries; whereineach of said entries corresponding to a second category of saidcategories includes a specific value for the remote source address, anddon't care values for the local destination address and at least one ofthe remote source port and the local destination port; and wherein eachof said entries corresponding to a third category of said categoriesincludes don't care values for the remote source address, the remotesource port, and the local destination address. The lookup mechanism isconfigured to update the said entries of a first category of saidcategories in response to the route processor establishingcommunications sessions between the first routing device and otherrouting devices for exchanging routing information, each of said firstentries includes remote source address, remote source port, localdestination address, and local destination port specific values foridentifying whether or not a said packet belongs to the communicationssession.

In one embodiment, the lookup update mechanism is configured to remove aparticular entry of said entries of the first category in response to acommunications session corresponding to the particular entry being torndown. In one embodiment, said admission control parameters correspondingto said entries of the first category provide for a higher rate thansaid admission control parameters corresponding to said entries of thesecond category, and wherein said admission control parameterscorresponding to said entries of the second category provide for ahigher rate than admission control parameters corresponding to saidentries of the third category. In one embodiment, said policing policyparameters corresponding to said entries of the first category providefor a higher rate than said policing policy parameters corresponding tosaid entries of the second category, and wherein said admission controlparameters corresponding to said entries of the second category providefor a higher rate than said admission control parameters correspondingto said entries of the third category. In one embodiment, at least oneof said admission control parameters corresponds to an internal priorityfor the route processor; and wherein the admission control enforcementmechanism is configured to cause identified packets destined for theroute processor to be processed according to corresponding internalpriorities.

In one embodiment, a routing device includes: a route processor, aforwarding lookup mechanism for identifying packets destined for theroute processor; a lookup mechanism for identifying policing policyparameters for packets destined for the route processor; and a policingmechanism for enforcing the identified policing policy parameters forthe packets. In one embodiment, the lookup mechanism typically includes:a ternary content-addressable memory, memory storage, and a ternarycontent-addressable memory update mechanism.

In one embodiment, the ternary content-addressable memory is configuredto store multiple entries for matching against lookup words derived fromfields of the packets to identify the policing policy parameters storedin the memory storage at locations corresponding to the entries. In oneembodiment, each of the entries includes a remote source address, aremote source port, a local destination address, and a local destinationport. All of the entries are compared to each of the lookup words—inother words, the entries are not partitioned into logical groupsidentified by a logical group identifier such that less than all of theentries are searched at a time. In one embodiment, there are differentcategories of entries, with each of the entries corresponding to asecond category including a specific value for the remote sourceaddress, and don't care values for the local destination address and atleast one of the remote source port and the local destination port; andwith each of the entries corresponding to a third category includingdon't care values for the remote source address, the remote source port,and the local destination address. In one embodiment, the ternarycontent-addressable memory update mechanism is configured to update theternary content-addressable memory with entries of a first category ofthe categories in response to the route processor establishingcommunications sessions between the first routing device and otherrouting devices for exchanging routing information, each of the firstentries includes remote source address, remote source port, localdestination address, and local destination port specific values foridentifying whether or not a packet belongs to the communicationssession. In one embodiment, the third category of entries are placedbelow in the matching priority the first and second category of entriesin the ternary content-addressable memory, such that a match to an entryof the first or a second category will be identified over a simultaneousmatch to an entry of the third category. In one embodiment, the secondcategory of entries are placed below in the matching priority the firstcategory of entries in the ternary content-addressable memory, such thata match to an entry of the first category will be identified over asimultaneous match to an entry of the second category.

In one embodiment, the ternary content-addressable memory updatemechanism is configured to remove a particular entry of the firstcategory in response to a communications session corresponding to theparticular entry being torn down. In one embodiment, the policing policyparameters corresponding to entries of the first category provide for ahigher rate than said policing policy parameters corresponding toentries of the second category. In one embodiment, the policing policyparameters corresponding to entries of the second category provide for ahigher rate than the policing policy parameters corresponding to entriesof the third category. In one embodiment, the memory storage alsoincludes priority tags stored in said memory storage at locationscorresponding to the entries for identifying a priority of a pluralityof priorities to use in deciding when to keep or drop a correspondingpacket in preference to other packets when resources such as, but notlimited to, buffer space becomes scarce, or when to process thecorresponding packet before or after other packets of a lower priority.

In one embodiment, the routing device uses ternary content-addressablememories (TCAMs) to identify policing and/or priority tags correspondingto a packet. TCAMs are typically hardware devices that allow packetheader fields to be looked up at line rate, and includes a mask so thatfields can be wild-carded (e.g., don't care fields) in any entry toclassify each packet that is destined for the router itself. The payloadof a matched TCAM entry indicates (e.g., the address corresponds to anaddress in an adjunct memory storage device) policer parameters (e.g.,an average, maximum and/or burst rate used to limit the number ofpackets admitted per unit of time) and one or more priority tags (usedto decide when to keep or drop a packet in preference to other packetswhen resources such as buffer space becomes scarce, or when to process apacket before or after other packets).

In one embodiment, the TCAM contains entries for each control protocolthat the router supports, and for a given control protocol, the TCAMtypically contains three kinds or categories of entries for conferringdifferent levels of trust (implied authentication) on different packets.A first category includes dynamically-created entries for establishedpeering sessions, which are typically generated and removed dynamicallyas the sessions are established and torn down. These entries typicallymatch a specific layer 3 protocol, layer 4 protocol, source anddestination addresses, and source and destination port numbers (ifapplicable) and ingress interface (if applicable). These entries aretypically associated with the highest policing rate, and are createddynamically as a peering session is established. These entries appearfirst in the TCAM and thus are matched before the other kinds of entriesbelow. Thus, packets for established peering sessions may be serviced ata higher allocated bandwidth and/or priority.

A second category includes entries for configured peers. These entriesuse wild-card (e.g., don't care) values for the destination address andthe source or destination port numbers. They match session initiationpackets from known peers, and the first few data packets of each sessionduring the latency period as the established-session entries are beingadded to the hardware. They are generated when a peer is configured.They are associated with a lower policing rate.

A third category includes static default entries for the protocol. Theseentries match session-initiation and early data packets from knownpeers, during the latency period as the configured peer entries arebeing added to the hardware. They are statically generated, and areassociated with a very low policing rate.

The vast majority of control protocol packets generated by an attackerwould match the default entries, and would be dropped by the policer.Typically, at most, they would briefly delay the establishment ofsessions with a newly-configured peers. Attack packets that successfullyguessed a peer's address would be policed at a higher rate, but theresources used by these packets would be very small. The primary effectwould be to slow the establishment of new peering sessions. Only attackpackets that successfully guessed the entire key for an active session(layer 3 protocol, layer 4 protocol, source addresses, destinationaddress, source port, destination port) would be admitted to the routerin any quantity and potentially interfere with its operation.

Thus, in one embodiment, the use of the different categories of packetclassification for packets destined for a route processor and theircorresponding different policing rates and priorities, provides adynamic DoS attack exposure of the routing device, which can be modifiedin real time. The routing device typically polices control protocolpackets that appear to be from established control sessions at a muchhigher rate than those that appear to be new session packets fromconfigured peers, and polices other control protocol packets at a verylow rate. This typically makes is much harder for an attacker to guessor systematically scan the port number and address spaces andsuccessfully disrupt the operation of the router.

Turning to the figures, FIG. 1 illustrates a routing device 100 used inone embodiment. A routing device typically includes a data and controlplanes. The data plane refers to the components and mechanisms used toprocess and forward packets passing through the routing device, whilethe control plane refers to the components and mechanisms (typicallyincluding one or more route processing devices) used to control therouting device, including processing received packets destined for thecontrol plane of the router (e.g., packets whose ultimate destination isthe routing device as opposed to those packets with a receiveddestination address of the routing device which the routing deviceprocesses and forwards to packet to the next device). For example,typically a route processor of the control plane communicates with peerdevices for exchanging routing information via established protocols(e.g., Border Gateway Protocol, etc.), and processes applicationrequests originated from remote devices and for communicating with therouting device (e.g., telnet, ssh, ldp, and other applications to therouting device, etc.). Note, the control plane may include the routeprocessor(s) and portions of the line cards and other devices.

As shown, routing device 100 (e.g., a router, or any othercommunications or computing engine that provides routing functionality)includes one or more route processors 102. The term route processor asused herein, and consistent with common usage, refers to a subsystem orboard communicatively coupled to multiple line cards, with the routeprocessor including one or more processing elements (e.g., CPUs)performing at least one of an extensible set of tasks, including, butnot limited to, receiving and processing route updates (e.g., BGPsessions) and application requests originated from remote devices andfor communicating with the routing device (e.g., telnet, ssh, ldp, andother applications to the routing device, etc.). Routing device 100includes multiple line cards 104-106 for interfacing with externaldevices, at least to receive and send packets. Line cards 104-106include functionality for identifying admission control policies (e.g.,parameters thereof) and for enforcing these admission control policiesfor packets destined for a route processor. As shown, routing device 100is connected to network 110, which may include hosts and other routingdevices. Network 110 is explicitly shown to connected to multiplerouting devices 100, 112-114, which typically communicate via routingcommunications sessions (e.g., BGP) for communicating routinginformation.

FIG. 2 illustrates functionality performed in one embodiment of a linecard 200. External packets 201 are received (and transmitted) externalinterface 202. A received packet is typically stored in packet memory204. Typically, the information contained in a packet's header andpossibly a subset of its packet data is required for processing therouting and admission control determinations for a packet. Typically,the term “packet” is used herein to describe the packet or a portionthereof. However, FIG. 2 uses the term “packet indications” toillustrate the processing of a packet using a portion of the packet.

Packet indications 205 are forwarded to a forwarding lookup mechanism toidentify whether the packet is destined for this routing device (e.g.,to the control plane) or for another device. Packet indications forother destinations 209 are forwarded to either to external interface 202or interface to switching fabric 210 (e.g., to be sent to other linecards), and in response, the packets are retrieved from packet memory204 and accordingly forwarded (having been processed to update anyfields that need to be as well known in the art).

Otherwise, forwarding lookup mechanism 208 has identified that thepacket is designated to be forwarded to the control plane, and typicallyto one or more of the routing devices route processors. Packetindications 211 are forwarded to a lookup mechanism 214 for identifyingadmission control parameters for use in controlling access to thecontrol plane or possibly more specifically controlling access to one ormore route processors. Indications 215 are forwarded to admissioncontrol enforcement mechanism 216 which performs the admission controlbased on the admission control parameters. Note, in one embodiment,lookup mechanism 214 is responsive to signals 231 received from theroute processor(s) indicating the establishment and tear down ofcommunications sessions between routing devices for communicatingrouting and/or other information. Conventional admission controltechniques known in the art or subsequently developed may be used. Thosepacket indications 217 that are not dropped by admission controlenforcement mechanism 216 are forwarded to interface to routeprocessor(s) 220, which retrieves the packet from packet memory 204, andforwards these packets 233 to the control plane/route processor(s).Note, in one embodiment, packet indications 217 include a priority tag(an admission control parameter) indicating its determined priority bylookup mechanism 214, which may be used by interface 220 or the routeprocessor(s).

FIG. 3A is a block diagram of lookup mechanism 300 for identifyingadmission control parameters used in one embodiment. Note, any type ofknown or subsequently discovered lookup mechanism can be used, such as,but not limited to those including an associative memory, a data base orother data structure. One embodiment specifically uses a ternarycontent-addressable memory because of its currently perceivedimplementation advantages, but of course, other embodiment employ lookupmechanism(s) that use another or other basic lookup mechanism(s).

As shown, control logic 310 receives signals 303 of packet indicationsand those from a route processor. In response to signals 303 from aroute processor, control logic 310 possibly updates ternarycontent-addressable memory or memories 312 and/or adjunct memory ormemories 315. In response to a signal 303 including a packet indication,control logic 310 generates a lookup word for use in performing a lookupoperation on TCAM(s) 312, which generates a result 313 indicating theaddress of the matching entry, which is used to perform a lookupoperation on memory or memories 315 to generate results 315, e.g., theadmission control parameter(s). In response, control logic 310 forwards(307) the packet indication and admission control parameters.

FIG. 3B is a block diagram illustrating categories 341-343 of lookupmechanism entries 330 used in one embodiment (possibly with othercategories, of course). Many different classification configurationvalues may be used to identify the admission control policycorresponding to a particular packet. Examples of these classificationconfiguration values include, but are not limited to, local destinationaddress, local destination port number, remote source address, remotesource port number, protocol type, time-to-live value, and other fieldsor subfields of the header and/or data portion of a packet, as well aspossibly other characteristics such as the interface or physical port onwhich the packet was received, etc.

In one embodiment, these categories 341-343 can be characterized by thefour values of local destination address 331, local destination portnumber 332, remote source address 333, and remote source port number334. In one embodiment, a first category 341 has specific values foreach of values 331-334; a second category 342 includes a don't care(i.e., wildcard) value for the local destination address 331 and remotesource address 333, while at least one of values 332 and 334 are don'tcare; and a third category 343 has don't care values for values 331 and333-334, while value 332 can be specific or a don't care value. Aspreviously discussed herein, in one embodiment, first category 341includes dynamically-created entries for established peering sessions,second category 342 includes entries for configured peers; and thirdcategory 343 includes static default entries.

FIG. 3C is a block diagram illustrating an example of a set of ternarycontent-addressable (TCAM) entries 360 and corresponding admissioncontrol parameters, specifically in this example: policing and priorityparameters (i.e., tags) 370. As shown, TCAM entries 360 include at leastthe four fields of local destination address 361, local destination portnumber 362, remote source address 363, and remote source port number364; and memory storage entries 370 include policing parameters 371(e.g., an average, maximum and/or burst rate used to limit the number ofpackets admitted per unit of time—although only one value is shown forillustrative purposes) and a priority parameter/tag 372. As shown,entries 381-382 are of the first category, entries 383-384 are of thesecond category, and entry 385 is of the third category. Note, in oneembodiment and as illustrated in FIG. 3C, the corresponding policingparameters 371 and priority parameters 372 decrease as the categorynumber increases.

FIG. 4 is a block illustrating a system or component used in oneembodiment for identifying admission control policies (e.g., parametersthereof) and for enforcing these admission control polices for packetsdestined for the control plane, or more specifically, a route processor.In one embodiment, system 420 performs one or more processescorresponding to one of the block or flow diagrams illustrated herein orotherwise described herein.

In one embodiment, system 420 includes a processing element 421, memory422, storage devices 423, optionally one or more specialized lookupmechanisms 424, and an interface 425 for connecting to other devices,which are coupled via one or more communications mechanisms 429 (shownas a bus for illustrative purposes). Specialized lookup mechanism(s) 424may include, but is not limited to, an associative memory or morespecifically a TCAM.

Various embodiments of system 420 may include more or less elements. Theoperation of system 420 is typically controlled by processing element421 using memory 422 and storage devices 423 to perform one or moretasks or processes. Memory 422 is one type of computer readable media,and typically comprises random access memory (RAM), read only memory(ROM), flash memory, integrated circuits, and/or other memorycomponents. Memory 422 typically stores computer executable instructionsto be executed by processing element 421 and/or data which ismanipulated by processing element 421 for implementing functionality inaccordance with one embodiment of the invention. Storage devices 423 areanother type of computer readable media, and typically comprise solidstate storage media, disk drives, diskettes, networked services, tapedrives, and other storage devices. Storage devices 423 typically storecomputer executable instructions to be executed by processing element421 and/or data which is manipulated by processing element 421 forimplementing functionality in accordance with one embodiment of theinvention.

In one embodiment, processing element 421 performs the functionality ofa lookup mechanism for performing a lookup operation based on a packet(i.e., packet or indication thereof) in specialized lookup mechanism424, and then retrieves the admission control parameter(s) from storagememory (e.g., memory 422 and/or storage devices 423).

FIG. 5 is a flow diagram illustrating a process for identifyingadmission control parameters used in one embodiment. Processing beginswith process block 500, and proceeds to process block 502, wherein alookup value is identified based on the classification configurationvalues (e.g., local destination address and port number and remotesource address and port number) of a packet identified as being destinedfor the control plane (e.g., destined for a route processor). In processblock 504, based on the lookup value, a lookup operation is performed onthe entries (which for a TCAM, typically includes all entries includingentries from each of the three categories) to identify the highestpriority result, and based on which, the corresponding admission controlparameter(s) are identified (e.g., when using a TCAM, these admissioncontrol parameters are typically retrieved from the memory storage basedon the location of the highest priority matching location in the TCAM).In process block 506, the identified admission control policy isenforced on the packet according to identified admission controlparameters and if the packet is not identified as being dropped, thepacket is forwarded to the control plane (e.g., to a route processor),possibly being placed in a queue (or performing other processing)corresponding to an identified control plane internal priority.

FIG. 6 is a flow diagram illustrating a process for entries of a lookupmechanism in one embodiment. Processing begins with process block 600,and proceeds to process block 602, wherein lookup mechanism entries areadded for the configuration information (e.g., which are specified in aconfiguration file or via another manner). These entries typicallycorrespond to the second and third categories of entries, as thecommunications (e.g., TCP/IP) sessions have not yet been established.When an update is required as determined in process block 603,processing proceeds to process block 605. If the update is responsive toa change in a communications session as determined in process block 605,then in process block 608, one or more lookup mechanism entries areupdated accordingly, typically that of a first category and possiblythat of a second category (e.g., specific values are added tocorresponding fields of a second category entry, a first category entryis added and possibly a second category entry is deleted, etc.).Otherwise, in process block 606, one or more entries in the lookupmechanism entries are updated accordingly, typically that of a second orthird category. Processing returns to process block 603.

In view of the many possible embodiments to which the principles of ourinvention may be applied, it will be appreciated that the embodimentsand aspects thereof described herein with respect to thedrawings/figures are only illustrative and should not be taken aslimiting the scope of the invention. For example and as would beapparent to one skilled in the art, many of the process block operationscan be re-ordered to be performed before, after, or substantiallyconcurrent with other operations. Also, many different forms of datastructures could be used in various embodiments. The invention asdescribed herein contemplates all such embodiments as may come withinthe scope of the following claims and equivalents thereof.

1. A routing device, comprising: means for identifying routing devicedestined packets whose destination is a control plane of the routingdevice; means for identifying one or more admission control parametersbased on classification configuration values for each of said routingdevice destined packets identified by said means for identifying routingdevice destined packets whose destination is the control plane of therouting device; means for dynamically updating said admission controlparameters and said classification configuration values in response tochanges in status of routing communication sessions between the routingdevice and one or more peer routing devices, at least some of saidrouting device destined packets corresponding to said communicationssessions; and means for enforcing said identified admission controlparameters corresponding to said routing device destined packets.
 2. Therouting device of claim 1, wherein at least one of said admissioncontrol parameters corresponds to a packet rate limitation, with saidmeans for enforcing said identified admission control parametersincludes means for limiting the packet rate based on the packet ratelimitation.
 3. The routing device of claim 1, wherein at least one ofsaid admission control parameters corresponds to a priority internal tothe control plane, with said means for enforcing said identifiedadmission control parameters includes means for causing saidcorresponding packets to be processed according to said identifiedpriority internal to the control plane.
 4. The routing device of claim3, means for causing said corresponding packets to be processedaccording to said identified priority internal to the control planeincludes means for causing said corresponding packets to be placed in apacket queue of a plurality of packet queues of different processingpriorities internal to the control plane.
 5. A routing device,comprising: a route processor; a forwarding lookup mechanism foridentifying packets destined for the route processor; a lookup mechanismfor identifying admission control parameters for said identified packetsdestined for the route processor; and an admission control enforcementmechanism for enforcing said identified admission control parameters forsaid identified packets destined for the route processor; wherein thelookup mechanism is configured to store a plurality of entries formatching against lookup words derived from fields of said packets toidentify said admission control parameters, said fields including aremote source address, a remote source port, a local destinationaddress, and a local destination port; wherein said entries includedifferent categories of entries; wherein each of said entriescorresponding to a second category of said categories includes aspecific value for the remote source address, and don't care values forthe local destination address and at least one of the remote source portand the local destination port; and wherein each of said entriescorresponding to a third category of said categories includes don't carevalues for the remote source address, the remote source port, and thelocal destination address; and wherein the lookup mechanism isconfigured to update the said entries of a first category of saidcategories in response to the route processor establishingcommunications sessions between the first routing device and otherrouting devices for exchanging routing information, each of said firstentries includes remote source address, remote source port, localdestination address, and local destination port specific values foridentifying whether or not a said packet belongs to the communicationssession.
 6. The routing device of claim 5, wherein the lookup updatemechanism is configured to remove a particular entry of said entries ofthe first category in response to a communications session correspondingto the particular entry being torn down.
 7. The routing device of claim6, wherein said admission control parameters corresponding to saidentries of the first category provide for a higher rate than saidadmission control parameters corresponding to said entries of the secondcategory, and wherein said admission control parameters corresponding tosaid entries of the second category provide for a higher rate thanadmission control parameters corresponding to said entries of the thirdcategory.
 8. The routing device of claim 6, wherein said policing policyparameters corresponding to said entries of the first category providefor a higher rate than said policing policy parameters corresponding tosaid entries of the second category, and wherein said admission controlparameters corresponding to said entries of the second category providefor a higher rate than said admission control parameters correspondingto said entries of the third category.
 9. The routing device of claim 5,wherein at least one of said admission control parameters corresponds toan internal priority for the route processor; and wherein the admissioncontrol enforcement mechanism is configured to cause identified packetsdestined for the route processor to be processed according tocorresponding internal priorities.
 10. A routing device, comprising: aroute processor; a forwarding lookup mechanism for identifying packetsdestined for the route processor; a lookup mechanism for identifyingpolicing policy parameters for said packets destined for the routeprocessor, with the lookup mechanism including: a ternarycontent-addressable memory; memory storage; and a ternarycontent-addressable memory update mechanism; and a policing mechanismfor enforcing said identified policing policy parameters for saidpackets; wherein the ternary content-addressable memory is configured tostore a plurality of entries for matching against lookup words derivedfrom fields of said packets to identify said policing policy parametersstored in said memory storage at locations corresponding to saidentries, each of said entries including a remote source address, aremote source port, a local destination address, and a local destinationport, with all of said entries being compared to each of said lookupwords; wherein said entries include different categories of entries;wherein each of said entries corresponding to a second category of saidcategories includes a specific value for the remote source address, anddon't care values for the local destination address and at least one ofthe remote source port and the local destination port; and wherein eachof said entries corresponding to a third category of said categoriesincludes don't care values for the remote source address, the remotesource port, and the local destination address; and wherein the ternarycontent-addressable memory update mechanism is configured to update theternary content-addressable memory with entries of said entries of afirst category of said categories in response to the route processorestablishing communications sessions between the first routing deviceand other routing devices for exchanging routing information, each ofsaid first entries includes remote source address, remote source port,local destination address, and local destination port specific valuesfor identifying whether or not a said packet belongs to thecommunications session.
 11. The routing device of claim 10, wherein theternary content-addressable memory update mechanism is configured toremove a particular entry of said entries of the first category inresponse to a communications session corresponding to the particularentry being torn down.
 12. The routing device of claim 11, wherein saidpolicing policy parameters corresponding to said entries of the firstcategory provide for a higher rate than said policing policy parameterscorresponding to said entries of the second category, and wherein saidpolicing policy parameters corresponding to said entries of the secondcategory provide for a higher rate than said policing policy parameterscorresponding to said entries of the third category.
 13. The routingdevice of claim 10, wherein said policing policy parameterscorresponding to said entries of the first category provide for a higherrate than said policing policy parameters corresponding to said entriesof the second category, and wherein said policing policy parameterscorresponding to said entries of the second category provide for ahigher rate than said policing policy parameters corresponding to saidentries of the third category.
 14. The routing device of claim 10,wherein said memory storage also includes priority tags stored in saidmemory storage at locations corresponding to said entries foridentifying a priority of a plurality of priorities to use in decidingwhen to keep or drop a corresponding packet in preference to otherpackets when resources such as, but not limited to, buffer spacebecoming scarce, or when to process the corresponding packet before orafter other packets of a lower priority.
 15. A line card of a firstrouter including functionality to protect a route processor of the firstrouter, the line card comprising: a forwarding lookup mechanism foridentifying packets destined for the route processor; a lookup mechanismfor identifying policing policy parameters for said packets destined forthe route processor, with the lookup mechanism including: a ternarycontent-addressable memory, memory storage, and means for updating theternary content-addressable memory; and a policing mechanism forenforcing said identified policing policy parameters for said packets;wherein the ternary content-addressable memory includes a plurality ofentries, each of said entries including a remote source address, aremote source port, a local destination address, and a local destinationport, with said entries comprising at least three categories including afirst category, a second category, and a third category, wherein thefirst category is higher matching priority than the second category, andthe second category is higher matching priority than the third category;wherein each of said entries of the first category includes specificvalues for the remote source address, the remote source port, the localdestination address, and the local destination port; wherein each ofsaid entries of the second category includes a specific value for theremote source address, and don't care values for the local destinationaddress and at least one of the remote source port and the localdestination port; and wherein each of the said entries of the thirdcategory includes don't care values for the remote source address, theremote source port, and the local destination address; and wherein saidmemory storage includes said policing policy parameters corresponding toeach of said categories or each of said entries and stored atcorresponding locations within said memory storage.
 16. The line card ofclaim 15, wherein said policing policy parameters corresponding to saidfirst category or each of said entries in said first category providefor a higher rate than said policing policy parameters corresponding tosaid second category or each of said entries in said second category,and wherein said policing policy parameters corresponding to said secondcategory or each of said entries in said second category provide for ahigher rate than said policing policy parameters corresponding to saidthird category or each of said entries in said third category.
 17. Theline card of claim 16, wherein said entries of said third category arestatic default entries; said entries of said second category are derivedfrom a configuration definition; and said entries of said third categoryare dynamically added by said means for updating the ternarycontent-addressable memory in response to establishing a communicationssession between the first router and a second router for exchangingrouting information.
 18. The line card of claim 15, wherein said entriesof said third category are static default entries; said entries of saidsecond category are derived from a configuration definition; and saidentries of said third category are dynamically added or removed by saidmeans for updating the ternary content-addressable memory in response toestablishing or removing a communications session between the firstrouter and a second router for exchanging routing information.
 19. Theline card of claim 15, wherein said memory storage also includespriority tags stored in said memory storage at locations correspondingto said entries for identifying a priority of a plurality of prioritiesto use in deciding when to keep or drop a corresponding packet inpreference to other packets when resources such as, but not limited to,buffer space becoming scarce, or when to process the correspondingpacket before or after other packets of a lower priority.